package com.skynet.supervision.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.skynet.supervision.entities.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author xuchao
 * @description t_user_accounts
 * @date 2023-03-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_user_accounts")
public class UserAccount extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;


    /**
     * 登录账号
     */
    private String account;

    /**
     * 登录密码
     */
    private String password;

    /**
     * 最后登录时间
     */
    private Long lastLoginAt;

    /**
     * 账号状态: 1 : 正常 ; 2  禁用
     */
    private Integer status;

    /**
     * 姓名
     */
    private String userName;

    /**
     * 性别
     */
    private String sex;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 角色
     */
    @TableField(exist = false)
    private String role;

}
